package com.terry.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication
public class WebApplication implements ApplicationRunner {

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);
	}


//	@Resource
//	private PasswordEncoder passwordEncoder;



	@Override
	public void run(ApplicationArguments args) throws Exception {


		//4f7b747bc608e7e00ce90bc12af20ad7

//		String md5 = SecureUtil.md5("YSys0587");
//		log.info("password -> {}",md5);
//
//		String encode = passwordEncoder.encode(md5);
//		log.info("encode -> {}",encode);


	}
}
